package com.xiaofeng.springboot.commons;

import java.io.Serializable;

/**
 * 
 * @author chenzf
 * @date 2017年7月26日
 */
public class ResultResponse implements Serializable {
	private static final long serialVersionUID = 5893834723498564294L;

	private boolean result;
	private String message;
	private Object data;

	public ResultResponse(boolean result) {
		this(result, null, null);
	}

	public ResultResponse(boolean result, String message) {
		this(result, message, null);
	}

	public ResultResponse(boolean result, String message, Object data) {
		this.result = result;
		this.message = message;
		this.data = data;
	}

	public boolean isResult() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
